<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Projet Jetpack: Référence du fichier /home/p1006250/lif7-projet-jetpack/src/Terrain.c</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Projet Jetpack
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Généré par Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li><a href="dirs.html"><span>Répertoires</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Membres&#160;de&#160;fichier</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_terrain_8c.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">Fonctions</a>  </div>
  <div class="headertitle">
<div class="title">Référence du fichier Terrain.c</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="_terrain_8h_source.html">Terrain.h</a>&quot;</code><br/>
</div><div class="textblock"><div class="dynheader">
Graphe des dépendances par inclusion de Terrain.c:</div>
<div class="dyncontent">
<div class="center"><img src="_terrain_8c__incl.png" border="0" usemap="#_2home_2p1006250_2lif7-projet-jetpack_2src_2_terrain_8c" alt=""/></div>
<map name="_2home_2p1006250_2lif7-projet-jetpack_2src_2_terrain_8c" id="_2home_2p1006250_2lif7-projet-jetpack_2src_2_terrain_8c">
</map>
</div>
</div>
<p><a href="_terrain_8c_source.html">Aller au code source de ce fichier.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Fonctions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_terrain_8c.html#aa3b3da7033de7e4286324e724ec4eaed">terInit</a> (<a class="el" href="_personnage_8h.html#a8e5086042a2f903e0e0b8c4185482cc9">Terrain</a> *pTer, <a class="el" href="_personnage_8h.html#a8e5086042a2f903e0e0b8c4185482cc9">Terrain</a> *pTersuiv)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><b> Brief Description </b> initialise le terrain. <br/>
  <a href="#aa3b3da7033de7e4286324e724ec4eaed"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_terrain_8c.html#a4ef14b5a22617c05c57c15a684181489">chargerTileset</a> (FILE *F, <a class="el" href="_personnage_8h.html#a8e5086042a2f903e0e0b8c4185482cc9">Terrain</a> *pTer)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><b> Brief Description </b> Charge Les tileset. <br/>
  <a href="#a4ef14b5a22617c05c57c15a684181489"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_terrain_8c.html#a675c6eb724cc04f4bd54187a9c726e22">chargerNiveau</a> (FILE *F, <a class="el" href="_personnage_8h.html#a8e5086042a2f903e0e0b8c4185482cc9">Terrain</a> *pTer)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><b> Brief Description </b> Charge une carte. <br/>
  <a href="#a675c6eb724cc04f4bd54187a9c726e22"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_terrain_8c.html#a65ce23314928441923707ec041871779">chargerTerrain</a> (<a class="el" href="_personnage_8h.html#a8e5086042a2f903e0e0b8c4185482cc9">Terrain</a> *pTer, const char *level, int largeur_fenetre, int hauteur_fenetre)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_sprite.html">Sprite</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_terrain_8c.html#a1ed790fb54f2f8aa6a08b2490a14a03f">FocusScrollBox</a> (<a class="el" href="_personnage_8h.html#a8e5086042a2f903e0e0b8c4185482cc9">Terrain</a> *pTer, <a class="el" href="struct_sprite.html">Sprite</a> *pSprite, int x, int y, int w, int h)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><b> Brief Description </b>Focalise la fenêtre sur le personnage. <br/>
   <a href="#a1ed790fb54f2f8aa6a08b2490a14a03f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_terrain_8c.html#afc0d7ba57ea830d333bfc3da9c85d467">terGetXY</a> (const <a class="el" href="_personnage_8h.html#a8e5086042a2f903e0e0b8c4185482cc9">Terrain</a> *pTer, int x, int y)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><b> Brief Description </b> Test les coordonnées du terrain . <br/>
  <a href="#afc0d7ba57ea830d333bfc3da9c85d467"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_terrain_8c.html#a029274c956d735b0306882b42a65c028">terSetXY</a> (<a class="el" href="_personnage_8h.html#a8e5086042a2f903e0e0b8c4185482cc9">Terrain</a> *pTer, int x, int y, char valeur)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><b> Brief Description </b> Test les coordonnées du terrain . \  <a href="#a029274c956d735b0306882b42a65c028"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_terrain_8c.html#a894e796af5dd61fa8e8879d74c4c197b">getDimX</a> (const <a class="el" href="_personnage_8h.html#a8e5086042a2f903e0e0b8c4185482cc9">Terrain</a> *pTer)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><b> Brief Description </b> Retourne la valeur dimx . <br/>
  <a href="#a894e796af5dd61fa8e8879d74c4c197b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_terrain_8c.html#af3b892a93ee78d81a03111d8b00231fe">getDimY</a> (const <a class="el" href="_personnage_8h.html#a8e5086042a2f903e0e0b8c4185482cc9">Terrain</a> *pTer)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><b> Brief Description </b> Retourne la valeur dimy . <br/>
  <a href="#af3b892a93ee78d81a03111d8b00231fe"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_terrain_8c.html#a7c49ccfd3dd17d702e1932887b9e4a37">selectTerrain</a> (char chemin[])</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_terrain_8c.html#a792510fb6567e176139dfd69ba70bfd2">verifProchCase</a> (const <a class="el" href="_personnage_8h.html#a8e5086042a2f903e0e0b8c4185482cc9">Terrain</a> *pTer, float x, float y)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><b> Brief Description </b> Verifie la prochaine case. <br/>
  <a href="#a792510fb6567e176139dfd69ba70bfd2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_terrain_8c.html#ae33e1396c7355287a37411d53fdf0394">CopieProchCarte</a> (<a class="el" href="_personnage_8h.html#a8e5086042a2f903e0e0b8c4185482cc9">Terrain</a> *pTer, <a class="el" href="_personnage_8h.html#a8e5086042a2f903e0e0b8c4185482cc9">Terrain</a> *pTersuiv)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><b> Brief Description </b> Charge la carte. <br/>
   <a href="#ae33e1396c7355287a37411d53fdf0394"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_terrain_8c.html#a942cc755e3b7ac930ae732b7be92c648">libereTerrain</a> (<a class="el" href="_personnage_8h.html#a8e5086042a2f903e0e0b8c4185482cc9">Terrain</a> *pTer)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><b> Brief Description </b> Libère la mémoire allouée . <br/>
  <a href="#a942cc755e3b7ac930ae732b7be92c648"></a><br/></td></tr>
</table>
<hr/><h2>Documentation des fonctions</h2>
<a class="anchor" id="a675c6eb724cc04f4bd54187a9c726e22"></a><!-- doxytag: member="Terrain.c::chargerNiveau" ref="a675c6eb724cc04f4bd54187a9c726e22" args="(FILE *F, Terrain *pTer)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_terrain_8h.html#a675c6eb724cc04f4bd54187a9c726e22">chargerNiveau</a> </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>F</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_personnage_8h.html#a8e5086042a2f903e0e0b8c4185482cc9">Terrain</a> *&#160;</td>
          <td class="paramname"><em>pTer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><b> Brief Description </b> Charge une carte. <br/>
 </p>
<p><b> Description </b> Charge une carte depuis un fichier texte. <br/>
 </p>
<dl class="params"><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">FILE</td><td>Pointeur sur fichier F. <br/>
 </td></tr>
    <tr><td class="paramdir">[in,out]</td><td class="paramname">terrain</td><td>Pointeur sur pTer. <br/>
 </td></tr>
  </table>
  </dd>
</dl>

<p>Définition à la ligne <a class="el" href="_terrain_8c_source.html#l00036">36</a> du fichier <a class="el" href="_terrain_8c_source.html">Terrain.c</a>.</p>

<p>Références <a class="el" href="_terrain_8h_source.html#l00024">sTerrain::nbtiles_hauteur_monde</a>, <a class="el" href="_terrain_8h_source.html#l00024">sTerrain::nbtiles_largeur_monde</a>, <a class="el" href="_terrain_8h_source.html#l00028">sTerrain::nbtilesX</a>, <a class="el" href="_terrain_8h_source.html#l00028">sTerrain::nbtilesY</a>, et <a class="el" href="_terrain_8h_source.html#l00026">sTerrain::schema</a>.</p>

<p>Référencé par <a class="el" href="_terrain_8c_source.html#l00059">chargerTerrain()</a>.</p>

</div>
</div>
<a class="anchor" id="a65ce23314928441923707ec041871779"></a><!-- doxytag: member="Terrain.c::chargerTerrain" ref="a65ce23314928441923707ec041871779" args="(Terrain *pTer, const char *level, int largeur_fenetre, int hauteur_fenetre)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_terrain_8h.html#a65ce23314928441923707ec041871779">chargerTerrain</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_personnage_8h.html#a8e5086042a2f903e0e0b8c4185482cc9">Terrain</a> *&#160;</td>
          <td class="paramname"><em>pTer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>level</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>largeur_fenetre</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>hauteur_fenetre</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Définition à la ligne <a class="el" href="_terrain_8c_source.html#l00059">59</a> du fichier <a class="el" href="_terrain_8c_source.html">Terrain.c</a>.</p>

<p>Références <a class="el" href="_sdl_jeu_8h_source.html#l00014">CACHE_SIZE</a>, <a class="el" href="_terrain_8c_source.html#l00036">chargerNiveau()</a>, <a class="el" href="_terrain_8c_source.html#l00014">chargerTileset()</a>, <a class="el" href="_terrain_8h_source.html#l00032">sTerrain::focusSprite</a>, <a class="el" href="_terrain_8h_source.html#l00029">sTerrain::hauteur_fenetre</a>, <a class="el" href="_terrain_8h_source.html#l00029">sTerrain::largeur_fenetre</a>, et <a class="el" href="_terrain_8h_source.html#l00025">sTerrain::xscroll</a>.</p>

<p>Référencé par <a class="el" href="_sdl_jeu_8c_source.html#l00153">sdljeuBoucle()</a>, et <a class="el" href="_terrain_8c_source.html#l00005">terInit()</a>.</p>

<p><div class="dynheader">
Voici le graphe d'appel pour cette fonction :</div>
<div class="dyncontent">
<div class="center"><img src="_terrain_8c_a65ce23314928441923707ec041871779_cgraph.png" border="0" usemap="#_terrain_8c_a65ce23314928441923707ec041871779_cgraph" alt=""/></div>
<map name="_terrain_8c_a65ce23314928441923707ec041871779_cgraph" id="_terrain_8c_a65ce23314928441923707ec041871779_cgraph">
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a4ef14b5a22617c05c57c15a684181489"></a><!-- doxytag: member="Terrain.c::chargerTileset" ref="a4ef14b5a22617c05c57c15a684181489" args="(FILE *F, Terrain *pTer)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_terrain_8h.html#a4ef14b5a22617c05c57c15a684181489">chargerTileset</a> </td>
          <td>(</td>
          <td class="paramtype">FILE *&#160;</td>
          <td class="paramname"><em>F</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_personnage_8h.html#a8e5086042a2f903e0e0b8c4185482cc9">Terrain</a> *&#160;</td>
          <td class="paramname"><em>pTer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><b> Brief Description </b> Charge Les tileset. <br/>
 </p>
<p><b> Description </b> Charge les tilesets depuis le fichier image. <br/>
 </p>
<dl class="params"><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">FILE</td><td>Pointeur sur fichier F. <br/>
 </td></tr>
    <tr><td class="paramdir">[in,out]</td><td class="paramname">terrain</td><td>Pointeur sur pTer. <br/>
 </td></tr>
  </table>
  </dd>
</dl>

<p>Définition à la ligne <a class="el" href="_terrain_8c_source.html#l00014">14</a> du fichier <a class="el" href="_terrain_8c_source.html">Terrain.c</a>.</p>

<p>Références <a class="el" href="_sdl_jeu_8h_source.html#l00014">CACHE_SIZE</a>, <a class="el" href="_terrain_8h_source.html#l00028">sTerrain::nbtilesX</a>, <a class="el" href="_terrain_8h_source.html#l00028">sTerrain::nbtilesY</a>, et <a class="el" href="_terrain_8h_source.html#l00027">sTerrain::tileplein</a>.</p>

<p>Référencé par <a class="el" href="_terrain_8c_source.html#l00059">chargerTerrain()</a>.</p>

</div>
</div>
<a class="anchor" id="ae33e1396c7355287a37411d53fdf0394"></a><!-- doxytag: member="Terrain.c::CopieProchCarte" ref="ae33e1396c7355287a37411d53fdf0394" args="(Terrain *pTer, Terrain *pTersuiv)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_terrain_8h.html#ab31d260e306cedb6b2db5daa2cccba3d">CopieProchCarte</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_personnage_8h.html#a8e5086042a2f903e0e0b8c4185482cc9">Terrain</a> *&#160;</td>
          <td class="paramname"><em>m</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_personnage_8h.html#a8e5086042a2f903e0e0b8c4185482cc9">Terrain</a> *&#160;</td>
          <td class="paramname"><em>suiv</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><b> Brief Description </b> Charge la carte. <br/>
  </p>
<p><b> Description </b> Permet de charger la prochaine carte et de la garder en mémoire jusqu'à son affichage. <br/>
 </p>
<dl class="params"><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">Map</td><td>Pointeur sur m. <br/>
 </td></tr>
    <tr><td class="paramdir">[in,out]</td><td class="paramname">Map</td><td>Pointeur sur suiv. <br/>
 </td></tr>
  </table>
  </dd>
</dl>

<p>Définition à la ligne <a class="el" href="_terrain_8c_source.html#l00143">143</a> du fichier <a class="el" href="_terrain_8c_source.html">Terrain.c</a>.</p>

<p>Références <a class="el" href="_terrain_8h_source.html#l00029">sTerrain::hauteur_fenetre</a>, <a class="el" href="_terrain_8h_source.html#l00030">sTerrain::HAUTEUR_TILE</a>, <a class="el" href="_terrain_8h_source.html#l00030">sTerrain::LARGEUR_TILE</a>, <a class="el" href="_terrain_8h_source.html#l00024">sTerrain::nbtiles_largeur_monde</a>, <a class="el" href="_terrain_8h_source.html#l00026">sTerrain::schema</a>, et <a class="el" href="_terrain_8h_source.html#l00025">sTerrain::xscroll</a>.</p>

<p>Référencé par <a class="el" href="_sdl_jeu_8c_source.html#l00153">sdljeuBoucle()</a>.</p>

</div>
</div>
<a class="anchor" id="a1ed790fb54f2f8aa6a08b2490a14a03f"></a><!-- doxytag: member="Terrain.c::FocusScrollBox" ref="a1ed790fb54f2f8aa6a08b2490a14a03f" args="(Terrain *pTer, Sprite *pSprite, int x, int y, int w, int h)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_sprite.html">Sprite</a>* <a class="el" href="_terrain_8h.html#a1ed790fb54f2f8aa6a08b2490a14a03f">FocusScrollBox</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_personnage_8h.html#a8e5086042a2f903e0e0b8c4185482cc9">Terrain</a> *&#160;</td>
          <td class="paramname"><em>pTer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_sprite.html">Sprite</a> *&#160;</td>
          <td class="paramname"><em>pSprite</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><b> Brief Description </b>Focalise la fenêtre sur le personnage. <br/>
  </p>
<dl class="params"><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">Map</td><td>Pointeur sur m. <br/>
 </td></tr>
    <tr><td class="paramdir">[in,out]</td><td class="paramname"><a class="el" href="struct_sprite.html">Sprite</a></td><td>Pointeur sur sp. <br/>
 </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">Entier</td><td>Coordonnée x. <br/>
 </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">Entier</td><td>Coordonnée y. <br/>
 </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">Entier</td><td>Coordonnée w. <br/>
 </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">Entier</td><td>Coordonnée h. <br/>
 </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>Retourne un <a class="el" href="struct_sprite.html">Sprite</a>. <br/>
 </dd></dl>

<p>Définition à la ligne <a class="el" href="_terrain_8c_source.html#l00086">86</a> du fichier <a class="el" href="_terrain_8c_source.html">Terrain.c</a>.</p>

<p>Références <a class="el" href="_terrain_8h_source.html#l00031">sTerrain::focush</a>, <a class="el" href="_terrain_8h_source.html#l00031">sTerrain::focusw</a>, <a class="el" href="_terrain_8h_source.html#l00031">sTerrain::focusx</a>, et <a class="el" href="_terrain_8h_source.html#l00031">sTerrain::focusy</a>.</p>

<p>Référencé par <a class="el" href="_sdl_jeu_8c_source.html#l00138">sdlInit()</a>.</p>

</div>
</div>
<a class="anchor" id="a894e796af5dd61fa8e8879d74c4c197b"></a><!-- doxytag: member="Terrain.c::getDimX" ref="a894e796af5dd61fa8e8879d74c4c197b" args="(const Terrain *pTer)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const int <a class="el" href="_terrain_8h.html#a894e796af5dd61fa8e8879d74c4c197b">getDimX</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="_personnage_8h.html#a8e5086042a2f903e0e0b8c4185482cc9">Terrain</a> *&#160;</td>
          <td class="paramname"><em>pTer</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><b> Brief Description </b> Retourne la valeur dimx . <br/>
 </p>
<p><b> Description </b> getDimX Retourne la valeur dimx. <br/>
 </p>
<dl class="params"><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">Terrain</td><td>Pointeur sur pTer. <br/>
 </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>Retourne un entier dimx. <br/>
 </dd></dl>

<p>Définition à la ligne <a class="el" href="_terrain_8c_source.html#l00114">114</a> du fichier <a class="el" href="_terrain_8c_source.html">Terrain.c</a>.</p>

<p>Références <a class="el" href="_terrain_8h_source.html#l00024">sTerrain::nbtiles_largeur_monde</a>.</p>

<p>Référencé par <a class="el" href="_ncurs_jeu_8c_source.html#l00012">ncursAff()</a>, et <a class="el" href="_ncurs_jeu_8c_source.html#l00029">ncursBoucle()</a>.</p>

</div>
</div>
<a class="anchor" id="af3b892a93ee78d81a03111d8b00231fe"></a><!-- doxytag: member="Terrain.c::getDimY" ref="af3b892a93ee78d81a03111d8b00231fe" args="(const Terrain *pTer)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const int <a class="el" href="_terrain_8h.html#af3b892a93ee78d81a03111d8b00231fe">getDimY</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="_personnage_8h.html#a8e5086042a2f903e0e0b8c4185482cc9">Terrain</a> *&#160;</td>
          <td class="paramname"><em>pTer</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><b> Brief Description </b> Retourne la valeur dimy . <br/>
 </p>
<p><b> Description </b> getDimY Retourne la valeur dimy. <br/>
 </p>
<dl class="params"><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">Terrain</td><td>Pointeur sur pTer. <br/>
 </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>Retourne un entier dimy. <br/>
 </dd></dl>

<p>Définition à la ligne <a class="el" href="_terrain_8c_source.html#l00119">119</a> du fichier <a class="el" href="_terrain_8c_source.html">Terrain.c</a>.</p>

<p>Références <a class="el" href="_terrain_8h_source.html#l00024">sTerrain::nbtiles_hauteur_monde</a>.</p>

<p>Référencé par <a class="el" href="_ncurs_jeu_8c_source.html#l00012">ncursAff()</a>, et <a class="el" href="_ncurs_jeu_8c_source.html#l00029">ncursBoucle()</a>.</p>

</div>
</div>
<a class="anchor" id="a942cc755e3b7ac930ae732b7be92c648"></a><!-- doxytag: member="Terrain.c::libereTerrain" ref="a942cc755e3b7ac930ae732b7be92c648" args="(Terrain *pTer)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_terrain_8h.html#a942cc755e3b7ac930ae732b7be92c648">libereTerrain</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_personnage_8h.html#a8e5086042a2f903e0e0b8c4185482cc9">Terrain</a> *&#160;</td>
          <td class="paramname"><em>pTer</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><b> Brief Description </b> Libère la mémoire allouée . <br/>
 </p>
<p><b> Description </b> Libère la mémoire du tableau de terrains . <br/>
 </p>
<dl class="params"><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">Terrain</td><td>Pointeur sur pTer. <br/>
 </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>Retourne un entier. <br/>
 </dd></dl>

<p>Définition à la ligne <a class="el" href="_terrain_8c_source.html#l00160">160</a> du fichier <a class="el" href="_terrain_8c_source.html">Terrain.c</a>.</p>

<p>Références <a class="el" href="_terrain_8h_source.html#l00024">sTerrain::nbtiles_hauteur_monde</a>, <a class="el" href="_terrain_8h_source.html#l00026">sTerrain::schema</a>, et <a class="el" href="_terrain_8h_source.html#l00027">sTerrain::tileplein</a>.</p>

<p>Référencé par <a class="el" href="_sdl_jeu_8c_source.html#l00153">sdljeuBoucle()</a>.</p>

</div>
</div>
<a class="anchor" id="a7c49ccfd3dd17d702e1932887b9e4a37"></a><!-- doxytag: member="Terrain.c::selectTerrain" ref="a7c49ccfd3dd17d702e1932887b9e4a37" args="(char chemin[])" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* <a class="el" href="_terrain_8h.html#a19fea651051176bf53f50afdfdb33298">selectTerrain</a> </td>
          <td>(</td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>chemin</em>[]</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Définition à la ligne <a class="el" href="_terrain_8c_source.html#l00124">124</a> du fichier <a class="el" href="_terrain_8c_source.html">Terrain.c</a>.</p>

<p>Référencé par <a class="el" href="_sdl_jeu_8c_source.html#l00153">sdljeuBoucle()</a>, et <a class="el" href="_terrain_8c_source.html#l00005">terInit()</a>.</p>

</div>
</div>
<a class="anchor" id="afc0d7ba57ea830d333bfc3da9c85d467"></a><!-- doxytag: member="Terrain.c::terGetXY" ref="afc0d7ba57ea830d333bfc3da9c85d467" args="(const Terrain *pTer, int x, int y)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char <a class="el" href="_terrain_8h.html#afc0d7ba57ea830d333bfc3da9c85d467">terGetXY</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="_personnage_8h.html#a8e5086042a2f903e0e0b8c4185482cc9">Terrain</a> *&#160;</td>
          <td class="paramname"><em>pTer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><b> Brief Description </b> Test les coordonnées du terrain . <br/>
 </p>
<p><b> Description </b> terGetXY test les coordonnées et retourne un caractère . <br/>
 </p>
<dl class="params"><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">Terrain</td><td>Pointeur sur pTer. <br/>
 </td></tr>
  </table>
  </dd>
</dl>

<p>Définition à la ligne <a class="el" href="_terrain_8c_source.html#l00096">96</a> du fichier <a class="el" href="_terrain_8c_source.html">Terrain.c</a>.</p>

<p>Références <a class="el" href="_terrain_8h_source.html#l00026">sTerrain::schema</a>.</p>

<p>Référencé par <a class="el" href="_ncurs_jeu_8c_source.html#l00012">ncursAff()</a>.</p>

</div>
</div>
<a class="anchor" id="aa3b3da7033de7e4286324e724ec4eaed"></a><!-- doxytag: member="Terrain.c::terInit" ref="aa3b3da7033de7e4286324e724ec4eaed" args="(Terrain *pTer, Terrain *pTersuiv)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_terrain_8h.html#aa3b3da7033de7e4286324e724ec4eaed">terInit</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_personnage_8h.html#a8e5086042a2f903e0e0b8c4185482cc9">Terrain</a> *&#160;</td>
          <td class="paramname"><em>pTer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_personnage_8h.html#a8e5086042a2f903e0e0b8c4185482cc9">Terrain</a> *&#160;</td>
          <td class="paramname"><em>pTersuiv</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><b> Brief Description </b> initialise le terrain. <br/>
 </p>
<p><b> Description </b> terInit initialise le terrain(après vérification) et alloue un espace mémoire. <br/>
 </p>
<dl class="params"><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">Terrain</td><td>Pointeur sur pTab. <br/>
 </td></tr>
  </table>
  </dd>
</dl>

<p>Définition à la ligne <a class="el" href="_terrain_8c_source.html#l00005">5</a> du fichier <a class="el" href="_terrain_8c_source.html">Terrain.c</a>.</p>

<p>Références <a class="el" href="_terrain_8c_source.html#l00059">chargerTerrain()</a>, <a class="el" href="_sdl_jeu_8h_source.html#l00013">HAUTEUR_FENETRE</a>, <a class="el" href="_sdl_jeu_8h_source.html#l00012">LARGEUR_FENETRE</a>, et <a class="el" href="_terrain_8c_source.html#l00124">selectTerrain()</a>.</p>

<p>Référencé par <a class="el" href="_jeu_8c_source.html#l00004">jeuInit()</a>.</p>

<p><div class="dynheader">
Voici le graphe d'appel pour cette fonction :</div>
<div class="dyncontent">
<div class="center"><img src="_terrain_8c_aa3b3da7033de7e4286324e724ec4eaed_cgraph.png" border="0" usemap="#_terrain_8c_aa3b3da7033de7e4286324e724ec4eaed_cgraph" alt=""/></div>
<map name="_terrain_8c_aa3b3da7033de7e4286324e724ec4eaed_cgraph" id="_terrain_8c_aa3b3da7033de7e4286324e724ec4eaed_cgraph">
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a029274c956d735b0306882b42a65c028"></a><!-- doxytag: member="Terrain.c::terSetXY" ref="a029274c956d735b0306882b42a65c028" args="(Terrain *pTer, int x, int y, char valeur)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_terrain_8h.html#a029274c956d735b0306882b42a65c028">terSetXY</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="_personnage_8h.html#a8e5086042a2f903e0e0b8c4185482cc9">Terrain</a> *&#160;</td>
          <td class="paramname"><em>pTer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>valeur</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><b> Brief Description </b> Test les coordonnées du terrain . \ </p>
<p><b> Description </b> terSetXY test les coordonnées et ajoute le caractère val . <br/>
 </p>
<dl class="params"><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">Terrain</td><td>Pointeur sur pTer. <br/>
 </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">entiers</td><td>Les coordonnées x et y. <br/>
 </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">caractère</td><td>Caractère val. <br/>
 </td></tr>
  </table>
  </dd>
</dl>

<p>Définition à la ligne <a class="el" href="_terrain_8c_source.html#l00105">105</a> du fichier <a class="el" href="_terrain_8c_source.html">Terrain.c</a>.</p>

<p>Références <a class="el" href="_terrain_8h_source.html#l00026">sTerrain::schema</a>.</p>

</div>
</div>
<a class="anchor" id="a792510fb6567e176139dfd69ba70bfd2"></a><!-- doxytag: member="Terrain.c::verifProchCase" ref="a792510fb6567e176139dfd69ba70bfd2" args="(const Terrain *pTer, float x, float y)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="_terrain_8h.html#a792510fb6567e176139dfd69ba70bfd2">verifProchCase</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="_personnage_8h.html#a8e5086042a2f903e0e0b8c4185482cc9">Terrain</a> *&#160;</td>
          <td class="paramname"><em>pTer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><b> Brief Description </b> Verifie la prochaine case. <br/>
 </p>
<p><b> Description </b> Vérifie si la prochaine case est valide et renvoie un booléen. <br/>
 </p>
<dl class="params"><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">Terrain</td><td>pointeur sur terrain et x et y les coordonnées. <br/>
 </td></tr>
  </table>
  </dd>
</dl>

<p>Définition à la ligne <a class="el" href="_terrain_8c_source.html#l00133">133</a> du fichier <a class="el" href="_terrain_8c_source.html">Terrain.c</a>.</p>

<p>Références <a class="el" href="_terrain_8h_source.html#l00026">sTerrain::schema</a>.</p>

<p>Référencé par <a class="el" href="_personnage_8c_source.html#l00034">persAvance()</a>, <a class="el" href="_personnage_8c_source.html#l00022">persDescendre()</a>, <a class="el" href="_personnage_8c_source.html#l00016">persMonter()</a>, et <a class="el" href="_personnage_8c_source.html#l00028">persRecule()</a>.</p>

</div>
</div>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_terrain_8c.html">Terrain.c</a>      </li>

    <li class="footer">Généré le Lundi Décembre 17 2012 01:09:41 pour Projet Jetpack par
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
